package com.office.service.impl;

import com.office.bean.Classes;
import com.office.bean.Major;
import com.office.mapper.ClassesMapper;
import com.office.service.ClassesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class ClassesServiceImpl implements ClassesService {

    @Autowired
    ClassesMapper classesMapper;



    @Override
    public long findtotalCount() {
        return classesMapper.findtotalCount();
    }

    @Override
    public List<Classes> findClassByPage(Map<String,Object> map) {
        return classesMapper.findClassByPage(map);
    }

    @Override
    public boolean deleteClass(int id) {
        return classesMapper.deleteClass(id);
    }

    @Override
    public long findClassCount(int id) {
        return classesMapper.findClassCount(id);
    }

    @Override
    public Classes findClassById(int id) {
        return classesMapper.findClassById(id);
    }

    @Override
    public List<Major> findMajor() {
        return classesMapper.findMajor();
    }

    @Override
    public int update(Classes classes) {
        return classesMapper.update(classes);
    }

    @Override
    public long findStudentCount(long classId) {
        return classesMapper.findStudentCount(classId);
    }

    @Override
    public List<Classes> findClassList() {
        return classesMapper.findClassList();
    }
}
